//
//  DBCalendarWay.h
//  CarCare
//
//  Created by ileo on 15/5/6.
//  Copyright (c) 2015年 baozun. All rights reserved.
//

#import "DataBaseEngine.h"
#import "DataBaseModel.h"

typedef NS_ENUM(NSInteger, CALENDARWAY_TYPE){
    CALENDARWAY_NODATA = 0, //没数据
    CALENDARWAY_ABNORMAL = 1, //异常
    CALENDARWAY_DRIVE = 2, //有行程
    CALENDARWAY_DRIVE_ABNORMAL = 5, //有行程有异常
    CALENDARWAY_STOP_REWARD = 3, //停驶有奖励
    CALENDARWAY_STOP_NOREWARD = 4, //停驶无奖励
};

@interface CalendarWayModel : DataBaseModel

@property (nonatomic, assign) NSInteger status; //CALENDARWAY_TYPE
@property (nonatomic, assign) NSInteger drivingMark;

@property (nonatomic, copy) NSString *dateString;
@property (nonatomic, assign) NSTimeInterval orderDate;
@property (nonatomic, copy) NSString *searchDate;

@end

@interface DBCalendarWay : DataBaseEngine

-(NSArray *)datasWithSearchDate:(NSString *)searchDate;

@end